package com.zyh.dao;

import com.zyh.entity.Tea;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface TeaMapper {
    void insertOne(Tea tea);
    void deleteTeas(int[] ids);
    void deleteTeaById(Integer teaId);
    void deleteTeasByCategoryId(Integer categoryId);
    void updateTea(Tea tea);
    Tea selectOneById(Integer teaId);
    List<Tea> selectByCategory(Integer categoryId);
    List<Tea> selectAllTea(@Param("nameSearch") String nameSearch,@Param("priceSearch") String priceSearch,@Param("categoryIdSearch") Integer cagetoryIdSearch);
}
